<?php

class Province extends Eloquent
{
    protected $guarded = array();

    public static $rules = array();

    /**
     * Get the place's provincePlaces.
     *
     * @return array
     */
    public function provincePlaces()
    {
        return $this->hasMany('ProvincePlaces');
    }

    public static function getDefaultProvice($slug = 'phnom-penh')
    {
        return self::where('slug', $slug)->first();
    }
}
